<?PHP $this->Html->css('management', null, array('inline' => false)); ?>
<div class="devis index">
	<h2><?php echo __('Devis en attente'); ?></h2>
	<table cellpadding="0" cellspacing="0">
	<tr>
			<th><?php echo $this->Paginator->sort('nom_utilisateur', 'Créateur');?></th>
			<th><?php echo $this->Paginator->sort('date_creation', 'Créé le');?></th>
			<th><?php echo $this->Paginator->sort('raison_sociale', 'Pour la société');?></th>
			<th><?php echo $this->Paginator->sort('statut_devis', 'État');?></th>
			<th class="actions"><?php echo __('Actions');?></th>
	</tr>
	<?php
	foreach ($devis as $devi): ?>
	<tr>
		<td><?php echo h($devi['utilisateur']['nom_utilisateur']); ?>&nbsp;</td>
		<td><?php echo date("d/m/Y", strtotime(h($devi['Devi']['date_creation']))); ?>&nbsp;</td>
		<td><?php echo h($devi['societe']['raison_sociale']); ?>&nbsp;</td>
		<td><?php echo h($devi['Devi']['statut_devis']); ?>&nbsp;</td>
		<td class="actions">
			<?php echo $this->Html->link(__('Afficher'), array('action' => 'edit', 'id_devis' => $devi['Devi']['id_devis'])); ?>
			<?php //echo $this->Html->link(__('Modifier'), array('action' => 'edit', $devi['Devi']['id_devis'])); ?>
			<?php //echo $this->Form->postLink(__('Supprimer'), array('action' => 'delete', $devi['Devi']['id_devis']), null, __('Are you sure you want to delete # %s?', $devi['Devi']['id_devis'])); ?>
		</td>
	</tr>
<?php endforeach; ?>
	</table>
	<p>
	<?php
	echo $this->Paginator->counter(array(
	'format' => __('Page {:page} sur {:pages}')
	));
	?>	</p>

	<div class="paging">
	<?php
		echo $this->Paginator->prev('< ' . __('précédent'), array(), null, array('class' => 'prev disabled'));
		echo $this->Paginator->numbers(array('separator' => ''));
		echo $this->Paginator->next(__('suivant') . ' >', array(), null, array('class' => 'next disabled'));
	?>
	</div>
</div>

<div class="actions">
	<h3><?php echo __('Vous pouvez aussi...'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('Voir la liste des utilisateurs'), array('controller' => 'admin/utilisateurs')); ?> </li>
	</ul>
</div>
